package com.auxgroup.smarthome.enterpriseapi.locations;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by kevinchen on 2017/3/25.
 */
public class CountryCountBean {
    private String countryCn;
    private String countryEn;
    private int count;
    private double rate;

    private List<RegionCountBean> regionCounts;

    public String getCountryCn() {
        return countryCn;
    }

    public void setCountryCn(String countryCn) {
        this.countryCn = countryCn;
    }

    public String getCountryEn() {
        return countryEn;
    }

    public void setCountryEn(String countryEn) {
        this.countryEn = countryEn;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public List<RegionCountBean> getRegionCounts() {
        return regionCounts;
    }

    public void setRegionCounts(List<RegionCountBean> regionCounts) {
        this.regionCounts = regionCounts;
    }

    public CountryCountBean() {
    }

    public CountryCountBean(String countryCn, String countryEn, int count, double rate) {
        this.countryCn = countryCn;
        this.countryEn = countryEn;
        this.count = count;
        this.rate = rate;
    }

    public void addRegionCountBean(RegionCountBean regionCountBean){
        if (regionCounts == null){
            regionCounts = new ArrayList<>();
        }
        regionCounts.add(regionCountBean);
    }
}
